<?php
/*
 * @version :  2013-2-9
 * @project :  account-system
 * @Author  :  Allen
 * @e-mail  :  shulei@maszy.cn
 */

?>
<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'custom_surname',
		'custom_name',
		array('name'=>'user_id','value'=>Custom::model()->getUserName($model->user_id)),
		'password',
		'telephone',
		'email',
		'custom_Passport',
		array('name'=>'telephone_number','value'=>Custom::model()->getEquipmentName($model->equipment_id)),
		'equipment_number',
		array('name'=>'package_id','value'=>Custom::model()->getPackageName($model->package_id)),
		array('name'=>'deposit'),
		array('name'=>'custom_id','value'=>Custom::model()->deposit($model->user_id)),
		array('name'=>'reback_address'),
		array('name'=>'address'),
		array('label'=>Yii::t('base','Left Flow'),'value'=>Custom::model()->getflow(Custom::model()->getEquipmentName($model->equipment_id)).'G'),
	),
)); ?>